import React, { Component } from "react";
import { Button } from "antd";
import { loginRender } from "../../../components/login/index";

class List extends Component {
	handleClick = () => {
		loginRender();
	}

	state = {
		list: [<div key="1">1</div>, <div key="2">22</div>]
	}

	render() {
		return (
			<div>
				<h3>ProductList</h3>
				{
					this.state.list
				}
				<Button onClick={this.handleClick}>test login</Button>
			</div>
		);
	}
}

export default List;
